package STUDENT.NGUYENVANSANG;

public class PhepToan {
	public static void main(String[] args) {
		int numberOne = 10;
		int numberTwo = 30;
		double numberThree = 112.113;
		int maxNumber = Math.max(numberOne, numberTwo);
		System.out.println("in ra gia tri max");
		System.out.println("max :" + maxNumber);

		System.out.println("in ra gia tri mix");
		int minNumber = Math.min(numberTwo, numberOne);
		System.out.println("min :" + minNumber);

		System.out.println("lam tron voi so nguyen lon gan nhat");
		System.out.println("ceil :" + Math.ceil(numberThree));

		System.out.println("lam tron voi so nguyen thap nhat");
		System.out.println("floor :" + Math.floor(numberThree));

		System.out.println("so nguyen gan nhat");
		System.out.println("round :" + Math.round(numberThree));

		// lấy số ngẫu nhiên
		double randomNumber = Math.random();
		System.out.println("randomNumber : " + randomNumber);
	}

}
